import request from '@/utils/request'
//获取-权限点列表
export function getPermissionListRequest () {
  return request({
    url: '/sys/permission',
    
  })
}

//新增-权限点
export function addPermissionRequest (data) {
  return request.post('/sys/permission',data)
}

//获取-权限点详情
export function getPermissionByIdRequest (id) {
  return request.get(`/sys/permission/${id}`)
}

//修改-权限点详情
export function updatePermissionByIdRequest (data) {
  return request.put(`/sys/permission/${data.id}`,data)
}
//删除-权限点
export function delPermissionByIdRequest (id) {
  return request.delete(`/sys/permission/${id}`)
}